package iceCream.core.base
{
	
	/**
	 * Project : IceCream
	 * Geometry
	 * @author 赵俊 <zhaojun@crop.the9.com>  
	 * $Id:$
	 * @version 1.0
	 */
	public class IC_Geometry
	{
		public var subGeometrys:Vector.<IC_SubGeometry> = new Vector.<IC_SubGeometry>();
		public function IC_Geometry()
		{
		}
		
		public function addSubGeomerty(sub:IC_SubGeometry):void
		{
			if(this.subGeometrys.indexOf(sub) == -1)
			{
				subGeometrys.push(sub);
			}
		}
		
		public function removeSubGeomerty(sub:IC_SubGeometry):void
		{
			var index:int = subGeometrys.indexOf(sub);
			if(index != -1)
			{
				subGeometrys.splice(index,1);
			}
		}
	}
} 
